Matthias Clasen [Wed, 25 Apr 2007 14:38:47 +0000 (14:38 +0000)]
Don't double the delay time of the first frame. (#431997, Björn
2007-04-25 Matthias Clasen <mclasen@redhat.com>
* gdk-pixbuf-simple-anim.c (gdk_pixbuf_simple_anim_add_frame):
Don't double the delay time of the first frame. (#431997,
Björn Lindqvist)
svn path=/trunk/; revision=17634
Matthias Clasen [Wed, 25 Apr 2007 14:00:10 +0000 (14:00 +0000)]
Fix a wrong cross reference. (#431289, Bastian Nocera)
2007-04-25 Matthias Clasen <mclasen@redhat.com>
* gtk/tmpl/gtkdialog.sgml: Fix a wrong cross reference.
(#431289, Bastian Nocera)
svn path=/trunk/; revision=17633
Matthias Clasen [Wed, 25 Apr 2007 13:57:16 +0000 (13:57 +0000)]
Chain up. (#433125, Christian Persch)
2007-04-25 Matthias Clasen <mclasen@redhat.com>
* gdk-pixbuf-scaled-anim.c (gdk_pixbuf_scaled_anim_iter_finalize):
Chain up. (#433125, Christian Persch)
svn path=/trunk/; revision=17632
Michael Natterer [Wed, 25 Apr 2007 12:11:08 +0000 (12:11 +0000)]
fix ACTIVE state of scroll buttons (we were setting the state to ACTIVE
2007-04-25 Michael Natterer <mitch@imendio.com>
* gtk/gtkmenu.c (gtk_menu_handle_scrolling): fix ACTIVE state of
scroll buttons (we were setting the state to ACTIVE but
immediately overwriting it with NORMAL or PRELIGHT). Also got rid
of many separate calls to gdk_window_invalidate_rect() by
remembering the old button state and only invalidating the area if
the state has changed (addresses parts of bug #433242, Tommi
Komulainen).
(gtk_menu_scroll_to): change the arrow states only if changing
from or to INSENSITIVE state, so we don't overwrite the ACTIVE
state set by above function.
svn path=/trunk/; revision=17630
Michael Natterer [Wed, 25 Apr 2007 09:47:14 +0000 (09:47 +0000)]
fix the build. Dunno if the fix is right, but I think it is.
2007-04-25 Michael Natterer <mitch@imendio.com>
* gtk/gtkprintoperation.c (preview_iface_is_selected): fix the
build. Dunno if the fix is right, but I think it is.
svn path=/trunk/; revision=17629
Kristian Rietveld [Wed, 25 Apr 2007 07:15:49 +0000 (07:15 +0000)]
cleanup/refactor some leftover code.
2007-04-25 Kristian Rietveld <kris@imendio.com>
* gtk/gtktooltip.c (find_topmost_widget_coords_from_event):
cleanup/refactor some leftover code.
svn path=/trunk/; revision=17628
Matthias Clasen [Tue, 24 Apr 2007 20:16:35 +0000 (20:16 +0000)]
Parse half-open ranges like -2 or 3-, and be a bit more liberal about
2007-04-24 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkprintunixdialog.c (dialog_get_page_ranges): Parse
half-open ranges like -2 or 3-, and be a bit more liberal
about whitespace.
(dialog_set_page_ranges): Support half-open ranges.
* gtk/gtkprintoperation.c (print_pages_idle): Substitute the
number of pages in half-open ranges.
(preview_iface_is_selected): Support half-open ranges here, too.
svn path=/trunk/; revision=17627
Chris Wilson [Tue, 24 Apr 2007 14:55:52 +0000 (14:55 +0000)]
Ensure the icon_theme->all_icons and dir->icons hash tables use the same
2007-04-24 Chris Wilson <chris@chris-wilson.co.uk>
* gtk/gtkicontheme.c (scan_directory): Ensure the
icon_theme->all_icons and dir->icons hash tables use the same string
as their keys. (#418531)
svn path=/trunk/; revision=17626
Cody Russell [Tue, 24 Apr 2007 03:31:48 +0000 (03:31 +0000)]
Cleanup of notebook tab code
svn path=/trunk/; revision=17623
Matthias Clasen [Mon, 23 Apr 2007 17:06:07 +0000 (17:06 +0000)]
Reduce the amount of debug spew if we are not debugging.
2007-04-23 Matthias Clasen <mclasen@redhat.com>
* modules/printbackends/cups/gtkprintbackendcups.c: Reduce
the amount of debug spew if we are not debugging.
svn path=/trunk/; revision=17619
Michael Natterer [Mon, 23 Apr 2007 16:06:56 +0000 (16:06 +0000)]
fix typo: testtoooltips_SOURCES -> testtooltips_SOURCES.
2007-04-23 Michael Natterer <mitch@imendio.com>
* tests/Makefile.am (testtooltips_SOURCES): fix typo:
testtoooltips_SOURCES -> testtooltips_SOURCES.
svn path=/trunk/; revision=17617
Cody Russell [Thu, 19 Apr 2007 17:24:57 +0000 (17:24 +0000)]
Fix menuitem rendering in Vista
svn path=/trunk/; revision=17614
Dominic Lachowicz [Thu, 19 Apr 2007 14:42:12 +0000 (14:42 +0000)]
Fix pixbuf leaks in non-WinXP rendering paths. From Daniel Atallah
2007-04-19 Dominic Lachowicz <domlachowicz@gmail.com>
* modules/engines/ms-windows/msw_style.c: Fix pixbuf leaks in
non-WinXP rendering paths. From Daniel Atallah (#403470)
svn path=/trunk/; revision=17613
Matthias Clasen [Thu, 19 Apr 2007 04:14:39 +0000 (04:14 +0000)]
Add GTK_ICON_LOOKUP_GENERIC_FALLBACK icon lookup flag and implement it.
2007-04-19 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkicontheme.h:
* gtk/gtkicontheme.c: Add GTK_ICON_LOOKUP_GENERIC_FALLBACK
icon lookup flag and implement it. (#396901, Luca Ferreti)
svn path=/trunk/; revision=17611
Richard Hult [Wed, 18 Apr 2007 20:09:55 +0000 (20:09 +0000)]
Refactor the process updates functions to share code between them. Also
2007-04-18 Richard Hult <richard@imendio.com>
* gdk/quartz/gdkwindow-quartz.c:
(gdk_window_quartz_process_updates_internal),
(gdk_window_quartz_process_all_updates),
(gdk_window_impl_quartz_process_updates): Refactor the process
updates functions to share code between them. Also fixes bug
#427660 by not updating larger regions than necessary.
svn path=/trunk/; revision=17610
Matthias Clasen [Wed, 18 Apr 2007 15:19:58 +0000 (15:19 +0000)]
Handle a borderline case correctly
svn path=/trunk/; revision=17608
Emmanuele Bassi [Wed, 18 Apr 2007 14:37:49 +0000 (14:37 +0000)]
Fix a leak by not increasing the refcount of the GtkRecentInfo object when
2007-04-18 Emmanuele Bassi <ebassi@gnome.org>
* gtk/gtkrecentmanager.c (gtk_recent_manager_lookup_item): Fix
a leak by not increasing the refcount of the GtkRecentInfo
object when returning it (thanks to Matthias Clasen).
svn path=/trunk/; revision=17606
Alexander Larsson [Mon, 16 Apr 2007 08:57:35 +0000 (08:57 +0000)]
Make async print preview work by actually starting the print process in
2007-04-16 Alexander Larsson <alexl@redhat.com>
* gtk/gtkprintoperation.c (gtk_print_operation_run):
Make async print preview work by actually starting
the print process in that case (#424168)
svn path=/trunk/; revision=17603
Kostas Papadimas [Sun, 15 Apr 2007 10:03:43 +0000 (10:03 +0000)]
Updated Greek translation
svn path=/trunk/; revision=17601
Yevgen Muntyan [Sat, 14 Apr 2007 15:58:53 +0000 (15:58 +0000)]
fixed wrong g_convert_with_fallback() call which caused
2007-04-14 Yevgen Muntyan <muntyan@tamu.edu>
* gtk/gtkselection.c (selection_get_text_plain): fixed
wrong g_convert_with_fallback() call which caused
gtk_selection_data_get_text() return invalid UTF-8 for
non-ASCII text in text/plain selection (#382824).
svn path=/trunk/; revision=17600
Jakub Steiner [Wed, 11 Apr 2007 23:06:21 +0000 (23:06 +0000)]
update the stock icons to follow the Tango le guidelines
2007-04-12 Jakub Steiner <jimmac@ximian.com>
* gtk/stock-icons/*: update the stock icons to follow the Tango
le guidelines
svn path=/trunk/; revision=17599
Chris Wilson [Wed, 11 Apr 2007 17:48:20 +0000 (17:48 +0000)]
Switch over to use glib's new g_hash_table_get_keys() rather than our own
2007-04-11 Chris Wilson <chris@chris-wilson.co.uk>
* gtk/gtkiconfactory.c (_gtk_icon_factory_list_ids):
* gtk/gtkstock.c (gtk_stock_list_ids):
Switch over to use glib's new g_hash_table_get_keys() rather
than our own static implementation.
* gtk/gtkiconfactory.h: Update to return a GList.
* configure.in: Bump required version to 2.13.1
svn path=/trunk/; revision=17597
Jakub Friedl [Wed, 11 Apr 2007 15:25:06 +0000 (15:25 +0000)]
Updated Czech Translation.
2007-04-12 Jakub Friedl <jfriedl@suse.cz>
* cs.po: Updated Czech Translation.
svn path=/trunk/; revision=17596
Ronald Bultje [Wed, 11 Apr 2007 11:08:22 +0000 (11:08 +0000)]
Protect the polling thread setup and shutdown function by mutexes and read
* gdk/quartz/gdkeventloop-quartz.c: Protect the polling thread
setup and shutdown function by mutexes and read the wakeup
pipe unconditionally and unblocking. This should make the main
loop always be woken up when using g_idle_add() from another
thread in the Quartz backend (#425271).
svn path=/trunk/; revision=17595
Raivis Dejus [Wed, 11 Apr 2007 08:32:17 +0000 (08:32 +0000)]
Updated Latvian Translation.
2007-04-11 Raivis Dejus <orvils@gmail.com>
* lv.po: Updated Latvian Translation.
svn path=/trunk/; revision=17594
Matthias Clasen [Tue, 10 Apr 2007 23:16:30 +0000 (23:16 +0000)]
Change the XSettingsWatchFunc to return a Bool to indicate success. Update
2007-04-10 Matthias Clasen <mclasen@redhat.com>
* gdk/x11/xsettings-client.[hc]: Change the XSettingsWatchFunc
to return a Bool to indicate success. Update callers and
implementors. Based on a patch by Owen Taylor.
* gdk/x11/gdkevents-x11.c (gdk_xsettings_watch_cb): Don't
leak a reference to gdkwin.
svn path=/trunk/; revision=17592
Priit Laes [Tue, 10 Apr 2007 20:59:02 +0000 (20:59 +0000)]
Updated Estonian translation by Ivar Smolin <okul@linux.ee>.
2007-04-12 Priit Laes <plaes@svn.gnome.org>
* et.po: Updated Estonian translation by Ivar Smolin <okul@linux.ee>.
svn path=/trunk/; revision=17591
Matthias Clasen [Mon, 9 Apr 2007 18:31:11 +0000 (18:31 +0000)]
Duplicate the mime_type when storing it in a hash node, to avoid leaks.
2007-04-09 Matthias Clasen <mclasen@redhat.com>
* xdgmimeglob.c (_xdg_glob_hash_insert_text): Duplicate the
mime_type when storing it in a hash node, to avoid leaks.
Update all callers.
svn path=/trunk/; revision=17589
Baris Cicek [Sat, 7 Apr 2007 18:48:10 +0000 (18:48 +0000)]
Updated Turkish Translation
svn path=/trunk/; revision=17588
Xan Lopez [Sat, 7 Apr 2007 09:33:15 +0000 (09:33 +0000)]
s/arrow-size/arrow-spacing in the arrow-spacing style property docs.
* gtk/gtknotebook.c (gtk_notebook_class_init):
s/arrow-size/arrow-spacing in the arrow-spacing
style property docs.
svn path=/trunk/; revision=17585
Richard Hult [Fri, 6 Apr 2007 21:12:48 +0000 (21:12 +0000)]
Clean up namespaces to make the code more maintainable.
2007-04-06 Richard Hult <richard@imendio.com>
* gdk/quartz/: Clean up namespaces to make the code more
maintainable.
* gdk/quartz/gdkdrawable-quartz.c:
* gdk/quartz/gdkgc-quartz.c: Fix bug #418384, alignment of tiled
images, by setting the pattern phase for the CG pattern.
svn path=/trunk/; revision=17584
Kristian Rietveld [Wed, 4 Apr 2007 13:05:42 +0000 (13:05 +0000)]
use new gdk_threads API.
2007-04-04 Kristian Rietveld <kris@imendio.com>
* gtk/gtktooltip.c (tooltip_browse_mode_expired),
(gtk_tooltip_hide_tooltip), (tooltip_popup_timeout),
(gtk_tooltip_start_delay): use new gdk_threads API.
svn path=/trunk/; revision=17583
Behdad Esfahbod [Tue, 3 Apr 2007 23:17:11 +0000 (23:17 +0000)]
Don't set metrics-hinting font option. Rely on the default value which is
2007-04-03 Behdad Esfahbod <behdad@gnome.org>
* gtk/gtksettings.c (settings_update_font_options): Don't set
metrics-hinting font option. Rely on the default value which is
on for all raster cairo surfaces. (#425985)
svn path=/trunk/; revision=17582
Loïc Minier [Tue, 3 Apr 2007 13:48:26 +0000 (13:48 +0000)]
Revert to non-xinerama mode when XineramaQueryScreens returns NULL; patch
2007-04-03 Loïc Minier <lool@dooz.org>
* gdk/x11/gdkscreen-x11.c: (check_xfree_xinerama): Revert to
non-xinerama mode when XineramaQueryScreens returns NULL; patch from
Simon McVittie; #425786.
svn path=/trunk/; revision=17579
Michael Natterer [Mon, 2 Apr 2007 16:32:22 +0000 (16:32 +0000)]
remove artifact from the time when type checking casts warned on NULL,
2007-04-02 Michael Natterer <mitch@imendio.com>
* gtk/gtkmenushell.c (gtk_real_menu_shell_move_current): remove
artifact from the time when type checking casts warned on NULL,
some whitespace cleanup.
svn path=/trunk/; revision=17578
Cody Russell [Sun, 1 Apr 2007 18:50:38 +0000 (18:50 +0000)]
Fix bottom-oriented notebook tabs on Win32. #399253
svn path=/trunk/; revision=17575
Elijah Newren [Sun, 1 Apr 2007 03:38:34 +0000 (03:38 +0000)]
Patch from Matthias to add support for the _NET_WM_USER_TIME_WINDOW EWMH
2007-03-31 Elijah Newren <newren gmail com>
* gdk/x11/gdkwindow-x11.c (setup_toplevel_window,
gdk_x11_window_set_user_time):
Patch from Matthias to add support for the
_NET_WM_USER_TIME_WINDOW EWMH protocol; see #354213.
WARNING: This patch will make metacity <= 2.18.0 freeze on
workspace switch. This is due to a weird problem that should only
affect window managers using gdk in-process for decoration drawing
and which make an unsafe assumption relating to doing so (i.e. it
should only affect metacity). Upgrade your version of metacity if
you hit this bug.
svn path=/trunk/; revision=17574
Michael Natterer [Thu, 29 Mar 2007 15:47:49 +0000 (15:47 +0000)]
Don't close menus on clicks on their border area (bug #423761). (modified
2007-03-29 Michael Natterer <mitch@imendio.com>
Don't close menus on clicks on their border area (bug #423761).
(modified patch from maemo-gtk).
* gtk/gtkmenu.c (gtk_menu_button_press)
(gtk_menu_button_release): bail out early if the click was on the
menu's border (not on any item and not outside the window).
(pointer_in_menu_window): new utility function which checks if
passed root coords are inside the menu_shell or one of its
parent shells.
svn path=/trunk/; revision=17571
Michael Natterer [Thu, 29 Mar 2007 08:14:22 +0000 (08:14 +0000)]
get rid of local GtkSettings variables by moving gtk_widget_get_settings()
2007-03-29 Michael Natterer <mitch@imendio.com>
* gtk/gtkmenu.c: get rid of local GtkSettings variables by moving
gtk_widget_get_settings() into the g_object_get() call. Some small
indentation fixes.
svn path=/trunk/; revision=17570
Matthias Clasen [Wed, 28 Mar 2007 15:53:08 +0000 (15:53 +0000)]
Support raw printers
svn path=/trunk/; revision=17568
Tim Janik [Wed, 28 Mar 2007 13:29:17 +0000 (13:29 +0000)]
applied JPEG loader fix from maemo. this fix makes sure stop_load()
Wed Mar 28 15:27:35 2007 Tim Janik <timj@imendio.com>
* io-jpeg.c: applied JPEG loader fix from maemo. this fix makes sure
stop_load() doesn't forget about its return value, and it pulls the
check for infinite looping out of an else branch in load_increment()
so it runs unconditionally, fixes #397643.
svn path=/trunk/; revision=17567
Kristian Rietveld [Wed, 28 Mar 2007 10:00:31 +0000 (10:00 +0000)]
don't unref tooltip_window, since this is handled by set_qdata_full()
2007-03-28 Kristian Rietveld <kris@imendio.com>
* gtk/gtkwidget.c (gtk_widget_set_tooltip_window): don't unref
tooltip_window, since this is handled by set_qdata_full() already.
(#412001, Torsten Schoenfeld).
svn path=/trunk/; revision=17566
Tor Lillqvist [Tue, 27 Mar 2007 22:11:38 +0000 (22:11 +0000)]
Use LDADDS for im-multipress.la, too:
2007-03-27 Tor Lillqvist <tml@novell.com>
* modules/input/Makefile.am: Use LDADDS for im-multipress.la, too:
svn path=/trunk/; revision=17565
Christian Persch [Mon, 26 Mar 2007 21:00:17 +0000 (21:00 +0000)]
Initialise variable. Bug #423064.
2007-03-26 Christian Persch <chpe@gnome.org>
* gtk/gtkrc.c: (gtk_rc_context_get): Initialise variable. Bug #423064.
svn path=/trunk/; revision=17564
Kristian Rietveld [Sat, 24 Mar 2007 14:40:11 +0000 (14:40 +0000)]
calculate the depth with the corrected real_cell_area and don't subtract
2007-03-24 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
calculate the depth with the corrected real_cell_area and don't
subtract horizontal_separator/2.
svn path=/trunk/; revision=17562
Andreas Nilsson [Sat, 24 Mar 2007 12:32:12 +0000 (12:32 +0000)]
fixed gtk-yes and gtk-no to tango style
svn path=/trunk/; revision=17561
Jakub Steiner [Fri, 23 Mar 2007 21:55:35 +0000 (21:55 +0000)]
gtk-dialog-authentication.svg gtk-dialog-error.svg gtk-dialog-info.svg
2007-03-23 Jakub Steiner <jimmac@ximian.com>
* gtk-dialog-authentication.svg
* gtk-dialog-error.svg
* gtk-dialog-info.svg
* gtk-dialog-question.svg
* gtk-dialog-warning.svg: Start with a Tango face-lift.
svn path=/trunk/; revision=17560
Rodney Dawes [Fri, 23 Mar 2007 14:06:52 +0000 (14:06 +0000)]
Fix a couple of comment typos (#421627)
2007-03-23 Rodney Dawes <dobey@novell.com>
* gtk/gtkicontheme.c: Fix a couple of comment typos (#421627)
svn path=/trunk/; revision=17559
Matthias Clasen [Fri, 23 Mar 2007 05:13:56 +0000 (05:13 +0000)]
Add a keybinding (C-h) to toggle whether to show hidden files. (#344657,
2007-03-23 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilechooserdefault.c: Add a keybinding (C-h) to
toggle whether to show hidden files. (#344657,
Wouter Bolsterlee, Priit Laes, et al)
svn path=/trunk/; revision=17557
Matthias Clasen [Fri, 23 Mar 2007 05:06:00 +0000 (05:06 +0000)]
Add a keybinding to toggle the visibility of the location entry. (#383354,
2007-03-23 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilechooserdefault.c: Add a keybinding to
toggle the visibility of the location entry. (#383354,
John Pye, patch by Carlos Garnacho)
svn path=/trunk/; revision=17555
Matthias Clasen [Thu, 22 Mar 2007 21:09:08 +0000 (21:09 +0000)]
Freeze property notification. Handle the gtk-color-scheme xsetting being
2007-03-22 Matthias Clasen <mclasen@redhat.com>
* gtk/gtksettings.c (merge_color_scheme): Freeze property
notification.
* gtk/gtksettings.c (_gtk_settings_handle_event): Handle
the gtk-color-scheme xsetting being unset.
* gtk/gtkrc.c (gtk_rc_reparse_all_for_settings): Handle
recursion locally.
svn path=/trunk/; revision=17553
Matthias Clasen [Thu, 22 Mar 2007 02:43:03 +0000 (02:43 +0000)]
Remove debug spew
svn path=/trunk/; revision=17551
Rodney Dawes [Wed, 21 Mar 2007 19:31:01 +0000 (19:31 +0000)]
Add a new API call gtk_icon_theme_list_contexts so that one can choose
2007-03-21 Rodney Dawes <dobey@novell.com>
* gtk/gtk.symbols:
* gtk/gtkicontheme.[ch]:
* docs/reference/gtk/gtk-sections.txt:
* tests/testicontheme.c:
Add a new API call gtk_icon_theme_list_contexts so that one can
choose icons from a theme by context (#420719)
svn path=/trunk/; revision=17550
Laurent Dhima [Wed, 21 Mar 2007 11:34:04 +0000 (11:34 +0000)]
Updated Albanian translation.
svn path=/trunk/; revision=17549
Ross Burton [Wed, 21 Mar 2007 07:29:52 +0000 (07:29 +0000)]
Document the ::event signal (#420703).
2007-03-21 Ross Burton <ross@burtonini.com>
* gtk/gtktexttag.c:
Document the ::event signal (#420703).
svn path=/trunk/; revision=17547
Kristian Rietveld [Tue, 20 Mar 2007 12:32:19 +0000 (12:32 +0000)]
add _gtk_tree_view_column_get_focus_area().
2007-03-20 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeviewcolumn.c:
* gtk/gtktreeprivate.h: add _gtk_tree_view_column_get_focus_area().
* gtk/gtktreeview.c (gtk_tree_view_clamp_column_visible): add
focus_to_cell parameter, rework to handle clamping columns which
are bigger than the available page size better,
(gtk_tree_view_key_press): remove code handling moving the focus
to other column headers,
(gtk_tree_view_header_focus): add clamp_column_visible parameter,
fix RTL support, don't wrap around when moving focus to other
column headers, call gtk_tree_view_clamp_column_visible() instead
of duplicating code,
(gtk_tree_view_focus): only clamp the column visible when we are
explicitly moving to another column header (fixes #399555, Charles
Kerr),
(gtk_tree_view_move_cursor_left_right): update call to
gtk_tree_view_clamp_column_visible().
svn path=/trunk/; revision=17546
Matthias Clasen [Mon, 19 Mar 2007 05:35:51 +0000 (05:35 +0000)]
Add some hints about titles on about dialogs
svn path=/trunk/; revision=17545
Matthias Clasen [Mon, 19 Mar 2007 04:27:45 +0000 (04:27 +0000)]
Ensure that the prefix is valid UTF-8. (#419568, Nickolay V. Shmyrev)
2007-03-18 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkentrycompletion.c (gtk_entry_completion_compute_prefix):
Ensure that the prefix is valid UTF-8. (#419568, Nickolay V. Shmyrev)
svn path=/trunk/; revision=17543
Matthias Clasen [Sun, 18 Mar 2007 05:34:24 +0000 (05:34 +0000)]
Add the multipress input method. (#417446, Johannes Schmid, Murray
2007-03-18 Matthias Clasen <mclasen@redhat.com>
* modules/input/gtkimcontextmultipress.[hc]:
* modules/input/im-multipress.conf:
* modules/input/immultipress.c:
* modules/input/README.multipress: Add the multipress input
method. (#417446, Johannes Schmid, Murray Cumming)
* modules/input/Makefile.am: Glue
svn path=/trunk/; revision=17541
Chris Wilson [Sat, 17 Mar 2007 20:26:49 +0000 (20:26 +0000)]
Change whitespace in ChangeLog entry for consistency.
svn path=/trunk/; revision=17539
Chris Wilson [Sat, 17 Mar 2007 18:51:35 +0000 (18:51 +0000)]
Initialise nxvisuals to 0 in order to handle XGetVisualInfo() failures
2007-03-17 Chris Wilson <chris@chris-wilson.co.uk>
* gdk/x11/gdkvisual-x11.c (_gdk_visual_init):
Initialise nxvisuals to 0 in order to handle
XGetVisualInfo() failures gracefully. (#419171)
svn path=/trunk/; revision=17538
Emmanuele Bassi [Sat, 17 Mar 2007 15:02:41 +0000 (15:02 +0000)]
Remove useless inlined function and propagate the properties to the
2007-03-17 Emmanuele Bassi <ebassi@gnome.org>
* gtk/gtkrecentaction.c (recent_chooser_set_property),
(gtk_recent_action_set_property): Remove useless inlined
function and propagate the properties to the GtkRecentChooser
objects we create, instead of all the proxies.
(set_current_filter): Remove 'inline' marker.
svn path=/trunk/; revision=17536
Emmanuele Bassi [Fri, 16 Mar 2007 20:04:57 +0000 (20:04 +0000)]
Rename get_submenu() to create_menu(); rename gtk_action_get_submenu() to
2007-03-16 Emmanuele Bassi <ebassi@gnome.org>
* gtk/gtkaction.h:
* gtk/gtkaction.c: Rename get_submenu() to create_menu();
rename gtk_action_get_submenu() to gtk_action_create_menu().
* gtk/gtkrecentaction.c: Update for GtkAction change.
* gtk/gtkuimanager.c (update_node): Update for GtkAction change;
also, use the menu from the GtkAction for both menuitem and
toolitem nodes.
svn path=/trunk/; revision=17535
Xan Lopez [Fri, 16 Mar 2007 16:07:02 +0000 (16:07 +0000)]
Fix changelog.
svn path=/trunk/; revision=17534
Xan Lopez [Fri, 16 Mar 2007 16:05:56 +0000 (16:05 +0000)]
Fix documentation error in gtk_widget_set_redraw_on_allocate.
* gtk/gtkwidget.c: Fix documentation error in
gtk_widget_set_redraw_on_allocate.
svn path=/trunk/; revision=17533
Matthias Clasen [Fri, 16 Mar 2007 05:13:10 +0000 (05:13 +0000)]
Scroll to make the selected printer visible. (#418403, Nickolay V.
2007-03-16 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkprintunixdialog.c (printer_added_cb): Scroll to
make the selected printer visible. (#418403, Nickolay V. Shmyrev,
patch by Christian Persch)
svn path=/trunk/; revision=17531
Federico Mena Quintero [Fri, 16 Mar 2007 00:53:09 +0000 (00:53 +0000)]
Merged from gtk-2-10:
2007-03-15 Federico Mena Quintero <federico@novell.com>
Merged from gtk-2-10:
* gtk/gtkfilechooserdefault.c (find_good_size_from_style):
PANGO_PIXELS() gives us device units, which are *points* in
pangocairo's parlance, but we want actual pixels. So, get the
screen's resolution to compute the actual number of pixels.
Fixes bug #418585.
svn path=/trunk/; revision=17530
Emmanuele Bassi [Thu, 15 Mar 2007 21:00:07 +0000 (21:00 +0000)]
remove spurious conflict marker from ChangeLog
svn path=/trunk/; revision=17527
Emmanuele Bassi [Thu, 15 Mar 2007 19:58:00 +0000 (19:58 +0000)]
Remove unused GError; do not allocate GtkRecentData and use a variable on
2007-03-15 Emmanuele Bassi <ebassi@gnome.org>
* gtk/gtkrecentmanager.c (gtk_recent_manager_add_item): Remove
unused GError; do not allocate GtkRecentData and use a variable
on the stack. (#418673, Morten Welinder)
svn path=/trunk/; revision=17525
Emmanuele Bassi [Thu, 15 Mar 2007 19:33:57 +0000 (19:33 +0000)]
Add GtkActionClass::get_submenu() vfunc: actions providing a menu item or
2007-03-15 Emmanuele Bassi <ebassi@gnome.org>
* gtk/gtkaction.[ch]: Add GtkActionClass::get_submenu() vfunc:
actions providing a menu item or a menu tool button with already
a submenu should return the GtkMenu widget.
* gtk/gtkuimanager.c (update_node): If an action provides its
own submenu, use it instead of adding an empty one
* gtk/gtkrecentaction.[ch]: Add GtkRecentAction, an action
implementing the GtkRecentChooser interface for displaying the
list of recently used files into menus and toolbars generated
using GtkUIManager. (#338843)
* gtk/Makefile.am:
* gtk/gtk.h:
* gtk/gtk.symbols: Add GtkRecentAction API to the build.
* tests/testactions.c: Exercise the GtkRecentAction API.
svn path=/trunk/; revision=17524
Chris Wilson [Thu, 15 Mar 2007 18:40:16 +0000 (18:40 +0000)]
Protect ensure_valid_themes() from recursion, which can happen for example
2007-03-15 Chris Wilson <chris@chris-wilson.co.uk>
* gtk/gtkicontheme.c (ensure_valid_themes), (rescan_themes),
(gtk_icon_theme_rescan_if_needed): Protect ensure_valid_themes()
from recursion, which can happen for example if the app tries to
reload an icon from within a theme-changed handler. (#418531)
svn path=/trunk/; revision=17523
Richard Hult [Thu, 15 Mar 2007 18:06:58 +0000 (18:06 +0000)]
Add stubs for gdk_notify_startup_complete_with_id and
2007-03-15 Richard Hult <richard@imendio.com>
* gdk/quartz/gdkmain-quartz.c: Add stubs for
gdk_notify_startup_complete_with_id and gdk_window_set_startup_id
here too.
svn path=/trunk/; revision=17521
Emmanuele Bassi [Thu, 15 Mar 2007 17:13:28 +0000 (17:13 +0000)]
Fix documentation errors. (Morten Welinder)
2007-03-15 Emmanuele Bassi <ebassi@gnome.org>
* gtk/gtkrecentmanager.c: Fix documentation errors. (Morten
Welinder)
svn path=/trunk/; revision=17519
Tor Lillqvist [Thu, 15 Mar 2007 16:48:26 +0000 (16:48 +0000)]
Add gdk_notify_startup_complete_with_id and gdk_window_set_startup_id.
2007-03-15 Tor Lillqvist <tml@novell.com>
* gdk/gdk.symbols: Add gdk_notify_startup_complete_with_id and
gdk_window_set_startup_id.
* gdk/win32/gdkmain-win32.c: Add dummy implementations of the above.
svn path=/trunk/; revision=17518
Emmanuele Bassi [Thu, 15 Mar 2007 10:05:34 +0000 (10:05 +0000)]
Move filtering of the recent files list into the shared implementation; do
2007-03-15 Emmanuele Bassi <ebassi@gnome.org>
* gtk/gtkrecentchooserprivate.h:
* gtk/gtkrecentchooserutils.c: Move filtering of the recent
files list into the shared implementation; do the filtering
before the sorting, so that we always clamp on the desired
size. (#418219)
* gtk/gtkrecentchoosermenu.c: Remove the filtering of the
list, as it's already been done.
* gtk/gtkrecentchooserdefault.c: Ditto; also remove the
GtkTreeModelFilter: just reload the view if the sorting and
filtering properties change.
* gtk/testrecentchoosermenu.c: Exercise the limit property.
svn path=/trunk/; revision=17516
Michael Natterer [Wed, 14 Mar 2007 13:55:12 +0000 (13:55 +0000)]
Make gtk_widget_set_extension_events() work on already realized widgets
2007-03-14 Michael Natterer <mitch@imendio.com>
Make gtk_widget_set_extension_events() work on already realized
widgets (bug #379550, Tommi Komulainen)
* gdk/x11/gdkinput.c (gdk_input_set_extension_events): allow to be
called multiple times without leaking and work correctly when
already realized (don't rely on a configure event following).
* gtk/gtkwidget.c (gtk_widget_set_extension_events_internal): new
internal function which walks the GdkWindow tree and sets the
extension events on all windows that belong to the widget.
(gtk_widget_realize)
(gtk_widget_set_extension_events): use the new function.
svn path=/trunk/; revision=17515
Emmanuele Bassi [Wed, 14 Mar 2007 10:33:36 +0000 (10:33 +0000)]
Various clean ups in the GtkRecent code. (see #338843)
2007-03-14 Emmanuele Bassi <ebassi@gnome.org>
Various clean ups in the GtkRecent code. (see #338843)
* gtk/gtkrecentchooserdefault.c:
* gtk/gtkrecentchoosermenu.c:
* gtk/gtkrecentchooserprivate.h:
* gtk/gtkrecentchooserutils.c: Move the recent chooser function
for getting the sorted and clamped list of recent files from the
manager outside the implementations.
* gtk/gtkrecentchooserdefault.c (chooser_set_sort_type): Repopulate
the list when the sorting order changes.
(gtk_recent_chooser_default_dispose),
(gtk_recent_chooser_default_finalize): Move object unref and
source removal from finalize to dispose.
* gtk/gtkrecentchooser.c (gtk_recent_chooser_type_init): Relax the
prerequisite for the GtkRecentChooser interface implementations,
from GtkObject to GObject.
(gtk_recent_chooser_class_init): Use GTK_PARAM_* instead of
G_PARAM_*
svn path=/trunk/; revision=17514
Ihar Hrachyshka [Tue, 13 Mar 2007 20:40:57 +0000 (20:40 +0000)]
be@latin.po: Added actual Belarusian Latin translation by Ales Navicki.
svn path=/trunk/; revision=17510
Emmanuele Bassi [Tue, 13 Mar 2007 17:03:54 +0000 (17:03 +0000)]
Apply patch by Vytautas Liuolia for changing the startup notification id
2007-03-13 Emmanuele Bassi <ebassi@gnome.org>
Apply patch by Vytautas Liuolia for changing the startup
notification id on a window in the X11 backend. (#347375)
* gdk/gdk.h:
* gdk/gdkx.h:
* gdk/x11/gdkdisplay-x11.c: Add gdk_notify_startup_complete_wit_id()
and gdk_x11_display_get_startup_notification_id().
* gdk/gdkwindow.h:
* gdk/x11/gdkwindow-x11.c: Add gdk_window_set_startup_id().
* gtk/gtkwindow.h:
* gtk/gtkwindow.c: Add gtk_window_set_startup_id(), used to
change the startup notification id.
(gtk_window_class_init), (gtk_window_init),
(gtk_window_set_property): Add write-only "startup-id" property
to GtkWindow.
(gtk_window_realize): Set the startup notification id
on a GtkWindow if it's valid.
(gtk_window_map): If we have another valid startup notification
id then finish the notification process.
svn path=/trunk/; revision=17508
Matthias Clasen [Tue, 13 Mar 2007 15:08:56 +0000 (15:08 +0000)]
Fix tabbed browsing in epiphany. (#413664, Christian Persch)
2007-03-13 Matthias Clasen <mclasen@redhat.com>
* gtk/gtknotebook.c (gtk_notebook_real_insert_page):
Fix tabbed browsing in epiphany. (#413664, Christian Persch)
svn path=/trunk/; revision=17505
Maxim Dziumanenko [Mon, 12 Mar 2007 07:47:21 +0000 (07:47 +0000)]
Update Ukrainian translation.
2007-03-12 Maxim Dziumanenko <dziumanenko@gmail.com>
* Update Ukrainian translation.
svn path=/trunk/; revision=17498
Matthias Clasen [Mon, 12 Mar 2007 06:31:38 +0000 (06:31 +0000)]
Clarify docs.
svn path=/trunk/; revision=17497
Matthias Clasen [Mon, 12 Mar 2007 06:26:34 +0000 (06:26 +0000)]
Doc improvements
svn path=/trunk/; revision=17496
Matthias Clasen [Mon, 12 Mar 2007 06:15:41 +0000 (06:15 +0000)]
Fix an oversight in an example.
svn path=/trunk/; revision=17495
Matthias Clasen [Mon, 12 Mar 2007 06:04:44 +0000 (06:04 +0000)]
Doc improvements
svn path=/trunk/; revision=17494
Matthias Clasen [Mon, 12 Mar 2007 05:51:11 +0000 (05:51 +0000)]
Set the background of the panel window on style changes. (#402144,
2007-03-12 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkspinbutton.c (gtk_spin_button_style_set): Set
the background of the panel window on style changes. (#402144,
Benjamin Berg)
svn path=/trunk/; revision=17492
Matthias Clasen [Mon, 12 Mar 2007 05:41:53 +0000 (05:41 +0000)]
Remove an obsolete comment
svn path=/trunk/; revision=17491
Matthias Clasen [Mon, 12 Mar 2007 04:46:58 +0000 (04:46 +0000)]
Don't copy PangoLanguage. (#340031, Morten Welinder)
2007-03-12 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_property):
Don't copy PangoLanguage. (#340031, Morten Welinder)
svn path=/trunk/; revision=17489
Matthias Clasen [Mon, 12 Mar 2007 04:09:25 +0000 (04:09 +0000)]
Handle the row reference path being NULL. (#410565, Joe Markus Clarke,
2007-03-12 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilechooserbutton.c (change_icon_theme_get_info_cb):
Handle the row reference path being NULL. (#410565, Joe Markus
Clarke, patch by Chris Wilson)
svn path=/trunk/; revision=17487
Matthias Clasen [Mon, 12 Mar 2007 03:13:51 +0000 (03:13 +0000)]
Handle Menu key presses without crash. (#385637, Christian Persch)
2007-03-11 Matthias Clasen <mclasen@redhat.com>
* tests/testiconview.c: Handle Menu key presses without
crash. (#385637, Christian Persch)
svn path=/trunk/; revision=17485
Matthias Clasen [Mon, 12 Mar 2007 02:51:40 +0000 (02:51 +0000)]
Don't crash if active_tips_data is NULL. (#382904, Li Yuan)
2007-03-11 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktooltips.c (gtk_tooltips_get_info_from_tip_window):
Don't crash if active_tips_data is NULL. (#382904, Li Yuan)
2
svn path=/trunk/; revision=17483
Matthias Clasen [Mon, 12 Mar 2007 02:32:15 +0000 (02:32 +0000)]
Set first_para_mark to NULL. (#396805, Colin Leroy, patch by Mariano
2007-03-11 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextview.c (gtk_text_view_set_buffer): Set first_para_mark
to NULL. (#396805, Colin Leroy, patch by Mariano Suárez-Alvarez)
svn path=/trunk/; revision=17481
Kristian Rietveld [Mon, 12 Mar 2007 00:12:25 +0000 (00:12 +0000)]
immediately bail out if current_folder is NULL. (#350988, lots of
2007-03-12 Kristian Rietveld <kris@gtk.org>
* gtk/gtkfilechooserdefault.c (check_save_entry): immediately
bail out if current_folder is NULL. (#350988, lots of reporters,
modified patch by Jan Darmochwal).
svn path=/trunk/; revision=17479
Raphael Higino [Sun, 11 Mar 2007 19:21:25 +0000 (19:21 +0000)]
Updated Brazilian Portuguese translation
svn path=/trunk/; revision=17476
Goran Rakic [Sun, 11 Mar 2007 17:22:24 +0000 (17:22 +0000)]
Updated Serbian translation
svn path=/trunk/; revision=17474
Guillaume Savaton [Sun, 11 Mar 2007 17:10:33 +0000 (17:10 +0000)]
invalid po revision date prevented correct build
2007-03-11 Guillaume Savaton <llumeao@gmail.com>
* Corrected po file for esperanto translation: invalid po revision date prevented correct build
svn path=/trunk/; revision=17473
Mugurel Tudor [Sat, 10 Mar 2007 23:01:00 +0000 (23:01 +0000)]
Updated Romanian translation by Mişu Moldovan <dumol@gnome.ro>
2007-03-11 Mugurel Tudor <mugurelu@gnome.ro>
* ro.po: Updated Romanian translation by
Mişu Moldovan <dumol@gnome.ro>
svn path=/trunk/; revision=17467
Mugurel Tudor [Sat, 10 Mar 2007 23:00:37 +0000 (23:00 +0000)]
Updated Romanian translation by Mişu Moldovan <dumol@gnome.ro>
2007-03-11 Mugurel Tudor <mugurelu@gnome.ro>
* ro.po: Updated Romanian translation by
Mişu Moldovan <dumol@gnome.ro>
svn path=/trunk/; revision=17466
Kristian Rietveld [Sat, 10 Mar 2007 22:42:40 +0000 (22:42 +0000)]
only hide the search dialog and send focus events if the search dialog is
2007-03-10 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_search_dialog_hide): only
hide the search dialog and send focus events if the search dialog
is currently visible.
svn path=/trunk/; revision=17464
Richard Hult [Sat, 10 Mar 2007 21:58:49 +0000 (21:58 +0000)]
Update for the new quartz cairo surface API (#410442). Don't lock focus
2007-03-10 Richard Hult <richard@imendio.com>
* gdk/quartz/gdkdrawable-quartz.c:
(gdk_quartz_drawable_get_context): Update for the new quartz cairo
surface API (#410442). Don't lock focus unless called outside of an
expose event.
(gdk_quartz_drawable_release_context): Only flush the CG context and
unlock focus if called outside of expose.
(gdk_quartz_ref_cairo_surface): Reuse the surface during its lifetime.
(_gdk_quartz_drawable_finish): New function, used to free the cached
cairo surface.
* gdk/quartz/gdkwindow-quartz.c:
(gdk_window_impl_quartz_begin_paint_region): A few small style changes.
(gdk_window_quartz_process_all_updates): Move the autorelease pool
allocation and freeing outside the loop.
(_gdk_windowing_window_destroy): Finish the drawable.
(move_resize_window_internal): Small cleanup and remove comment.
(_gdk_window_impl_quartz_get_type): No need to make the type info
static.
* gdk/quartz/gdkpixmap-quartz.c: Finish the drawable.
svn path=/trunk/; revision=17463